﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>兑换操作相关内容</h2>

<div class="item">
    <h3>提交兑换订单</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/exchange/exchangenew</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>用户编号</td>
        </tr>
        <tr>
            <td>idlist</td>
            <td>是</td>
            <td>商品编号集合</td>
        </tr>
        <tr>
            <td>limitidlist</td>
            <td>是</td>
            <td>限时限量编号集合</td>
        </tr>
        <tr>
            <td>countlist</td>
            <td>是</td>
            <td>商品数量集合</td>
        </tr>
        <tr>
            <td>username</td>
            <td>是</td>
            <td>收货人</td>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>联系方式</td>
        </tr>
        <tr>
            <td>useraddress</td>
            <td>是</td>
            <td>收货地址</td>
        </tr>
        <tr>
            <td>remark</td>
            <td>否</td>
            <td>备注</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>提交限兑订单</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/exchange/limitexchange</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>用户编号</td>
        </tr>
        <tr>
            <td>productid</td>
            <td>是</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>productcount</td>
            <td>是</td>
            <td>商品数量</td>
        </tr>
        <tr>
            <td>limitid</td>
            <td>是</td>
            <td>限兑活动编号</td>
        </tr>
        <tr>
            <td>username</td>
            <td>是</td>
            <td>收货人</td>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>联系方式</td>
        </tr>
        <tr>
            <td>useraddress</td>
            <td>是</td>
            <td>收货地址</td>
        </tr>
        <tr>
            <td>remark</td>
            <td>否</td>
            <td>备注</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>兑换订单发货</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/exchange/exchangedelivery</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ordercode</td>
            <td>是</td>
            <td>订单编号</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>查询用户兑换次数</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/exchange/getcount</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>用户编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>int</td>
            <td>兑换次数</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>查询用户兑换明细列表</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/exchange/getlist</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>用户编号</td>
        </tr>
        <tr>
            <td>itype</td>
            <td>是</td>
            <td>查询类型(全部、待发货、已发货)</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ProductID</td>
            <td>int</td>
            <td>商品编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>商品名称</td>
        </tr>
        <tr>
            <td>data[x].Cover</td>
            <td>string</td>
            <td>封面图片</td>
        </tr>
        <tr>
            <td>data[x].ExPoint</td>
            <td>int</td>
            <td>兑换微笑值</td>
        </tr>
        <tr>
            <td>data[x].iCount</td>
            <td>int</td>
            <td>兑换数量</td>
        </tr>
        <tr>
            <td>data[x].iStatus</td>
            <td>string</td>
            <td>状态</td>
        </tr>
        <tr>
            <td>data[x].Express</td>
            <td>string</td>
            <td>快递方式</td>
        </tr>
        <tr>
            <td>data[x].ExpressCode</td>
            <td>string</td>
            <td>快递编号</td>
        </tr>
    </table>
</div>